package com.ferryc.commons.entity;

@SuppressWarnings("serial")
public class TreeEntity<T> extends DataEntity<T> {

	/** 父级编号 */
	protected T parent;
	/** 所有父级编号 */
	protected Object child;

	/** 排序 */
	protected Integer sort;

	public TreeEntity() {
		super();
		this.sort = 30;
	}

	public TreeEntity(String id) {
		super(id);
	}

	public T getParent() {
		return parent;
	}

	public void setParent(T parent) {
		this.parent = parent;
	}

	public Object getChild() {
		return child;
	}

	public void setChild(Object child) {
		this.child = child;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

}
